package com.gaofei.pay.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Title: OrderFeignApi
 * @Author gaofee
 * @Package com.gaofei.pay.api
 * @Date 2024/03/14 11:34
 * @description: 订单接口的远程调用
 */
@FeignClient(name = "order-server",path = "order")
public interface OrderFeignApi {
    @RequestMapping("updateOrderStatus")  //远程调用这里加上这个注解
    public String update(@RequestParam("orderId") String orderId);

    //查询未支付的订单
    @RequestMapping("queryOrdersOfNoPay")
    public List<TbOrder> queryOrdersOfNoPay(@RequestParam("status") String status);
}
